package service;

import dao.CategoryDao;
import dao.CategoryDaoImpl;
import pojo.Category;

import java.util.List;

/**
 * Created by Tiler on 2020/11/4
 */
public class CategoryServiceImpl implements CategoryService {
    private CategoryDao categoryDao = new CategoryDaoImpl();

    @Override
    public List<Category> getAllCategories() {
        return categoryDao.selectAllCategories();
    }
}
